projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3ada9b
)
[XEND] Floats for not need to be stringified in Xen API.
author
Alastair Tse
<atse@xensource.com>
Fri, 26 Jan 2007 15:44:41 +0000
(15:44 +0000)
committer
Alastair Tse
<atse@xensource.com>
Fri, 26 Jan 2007 15:44:41 +0000
(15:44 +0000)
Signed-off-by: Alastair Tse <atse@xensource.com>
tools/python/xen/util/xmlrpclib2.py
patch
|
blob
|
history
diff --git
a/tools/python/xen/util/xmlrpclib2.py
b/tools/python/xen/util/xmlrpclib2.py
index ac95d4cf39673e44875fcdb4734d92cf4e3b7a9d..c701020b15d32d02826e3bd1b2139a3cef0550a0 100644
(file)
--- a/
tools/python/xen/util/xmlrpclib2.py
+++ b/
tools/python/xen/util/xmlrpclib2.py
@@
-50,8
+50,7
@@
except ImportError:
def stringify(value):
- if isinstance(value, float) or \
- isinstance(value, long) or \
+ if isinstance(value, long) or \
(isinstance(value, int) and not isinstance(value, bool)):
return str(value)
elif isinstance(value, dict):